package com.bizfx.component.views
{
	import mx.collections.IList;
	import mx.collections.SortField;

	public interface IListView extends IView
	{
		function get searchFields():IList;
		function set searchFields(value:IList):void;
		
		/**
		 * 列表的列
		 */
		function get columns():IList;
		function set columns(value:IList):void;
		
		function get searchConditions():IList;
		
		/**
		 * 每页显示记录数，分页时生效。
		 */
		function get pageSize():int;
		function set pageSize(value:int):void;
		
		function get pageIndex():int;
		
		/**
		 * List所选择的项目
		 */
		function get selectedItems():IList;
		function set selectedItems(value:IList):void;
		
		/**
		 * List最后一个选择的项目
		 */
		function get selectedItem():Object;
		function set selectedItem(value:Object):void;
		
		function get itemDoubleClickCommand():String;
		function set itemDoubleClickCommand(value:String):void;		
		
		/**
		 * 是否需要分页
		 */
		function get paging():Boolean;
		function set paging(value:Boolean):void;
		
		function get sortField():SortField;
		function set sortField(value:SortField):void;
		
		/**
		 * 是否允许多选
		 */
		function get allowMultipleSelection():Boolean;
		function set allowMultipleSelection(value:Boolean):void;
		
		function hideAllViewCommands():void;
		
		function showViewCommand(commandKey:String):void;
	}
}